package objects 
{
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author Ja
	 */
	public class MyField extends TextField 
	{
		private var format:TextFormat;
		
		public function MyField(w:Number=40,h:Number=20,size:int=12,font:String="Arial",color:uint=0xffffff,type:String="dynamic",border:Boolean=false,bColor:uint=0xffffff, align:String="center") 
		{
			
			format = new TextFormat();
			format.font = font;
			format.size = size;
			format.align = align;
			format.color = color;
			
			//fld.text = "100";
			this.textColor = color;
			this.borderColor = bColor;
			this.border = border;
			this.width = w;
			this.height = h;
			//fld.autoSize = "center";
			this.type = type;
			this.defaultTextFormat = format;
			this.setTextFormat(format);
			
		}
		
	}

}